﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KeyWords
{
    class Program
    {
        private Boolean sign = true;_
        private string _keywordsSavePath = @"..\..\..\keywords.txt";
        private string _mapFilePath = @"..\..\..\vectors.txt";

        public List<string> readKeywords()
        {
            FileStream fs = null;
            if (sign)
            {
                fs = new FileStream(_keywordsSavePath, FileMode.Open);
            }
            else
            {
            
            }
            StreamReader sr = new StreamReader(fs);
            List<string> keywords = new List<string>();
            if ()
            {
                keywords.AddRange(sr.ReadToEnd().Split(' ').ToList());
            }
            else
            {
                while (true)
                {
                    string keyword = sr.ReadLine();
                    if (!string.IsNullOrEmpty(keyword))
                    {
                        keyword = keyword.Replace(' ', ''); //去掉空格
                        keywords.Add(keyword);
                    }
                    else
                    {
                        break;
                    }
                }
            }
            sr.Close();
            fs.Close();
            foreach (var keyword in keywords)
            {
                Console.WriteLine(keyword);
            }
            return keywords;
        }

        static void Main(string[] args)
        {
            
        }
    }
}
